package a_obsolete;
import java.util.Date;

/**
 * Appointment
 * Holds information for each patient's appointment
 *
 *
 *  Date           	Name            	Action
 *  --------------------------------------------------------------------------------------
 *	03/06/11		Bethany				Copied over class to new repository. added fields, getters, and setters
 *
 *
 *
 */

public class Appointment {

	private Date startDate;
	private Date endDate;
	private Doctor doctor;
	private Patient patient;
	private String reason;
	
	/**
	 * Appointment Constructor
	 * @param startDate The start time and date for the appointment
	 * @param endDate The end time and date for the appointment
	 * @param patient The patient creating the appointment
	 * @param doctor The doctor requested for the appointment
	 * @param reason The reason for the appointment
	 */
	public Appointment(Date startDate, Date endDate, Patient patient, Doctor doctor, String reason){
		this.startDate = startDate;
		this.endDate = endDate;
		this.patient = patient;
		this.doctor = doctor;
		this.reason = reason;
	}

	/**
	 * Get the start date of the appointment
	 * @return The start date of the appointment
	 */
	public Date getStartDate() {
		return startDate;
	}

	/**
	 * Set the start date of the appointment
	 * @param startDate The start date of the appointment
	 */
	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	/**
	 * Get the end date of the appointment
	 * @return The end date of the appointment
	 */
	public Date getEndDate() {
		return endDate;
	}

	/**
	 * Set the end date of the appointment
	 * @param endDate The end date of the appointment
	 */
	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	/**
	 * Gets the doctor requested for this appointment
	 * @return The doctor requested for this appointment
	 */
	public Doctor getDoctor() {
		return doctor;
	}

	/**
	 * Sets the doctor requested for this appointment
	 * @param doctor The doctor requested for this appointment
	 */
	public void setDoctor(Doctor doctor) {
		this.doctor = doctor;
	}

	/**
	 * Gets the patient making the appointment
	 * @return The patient making the appointment
	 */
	public Patient getPatient() {
		return patient;
	}

	/**
	 * Sets the patient making the appointment
	 * @param patient The patient making the appointment
	 */
	public void setPatient(Patient patient) {
		this.patient = patient;
	}

	/**
	 * Gets the reason for the appointment
	 * @return The reason for the appointment
	 */
	public String getReason() {
		return reason;
	}

	/**
	 * Sets the reason for the appointment
	 * @param reason The reason for the appointment
	 */
	public void setReason(String reason) {
		this.reason = reason;
	}
	

}
